﻿//======================================================================
//
//        Copyright (C) 2008 HOHO``
//        All rights reserved
//
//        filename :$safeitemrootname$
//        description :首页
//
//        created by 裘中杰 at  $time$
//======================================================================

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Hisun.Models;
using Hisun.Controllers;

namespace Hisun
{
    public partial class _Default : AbcPageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string welcomeString = string.Format("欢迎 {0} ，当前会计期间：{1}", Session[ServerVars.sysSessionUserName].ToString(), "<font color = red>" + Application[ServerVars.sysApplcationAccountPeriod].ToString() + "</font>");
            litMsg.Text = welcomeString;
        }

        protected void LinkButton_ReLogin_Click(object sender, EventArgs e)
        {
            HttpContext.Current.Session.Clear();
            Response.Write("<script language=javascript>top.location.href='Login.aspx';</script>");
        }
    }
}
